package br.com.clebao.droidcontroler.persistencia;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public interface DAO<T> {
	public SQLiteDatabase openDB();
	public void closeDB();
	public long addObject (T obj);
	public boolean updateObject(T obj);
	public boolean deleteObject(int id);
	public Cursor findObject(int id);
	public Cursor findAllObject();
	
	abstract void setTableName();
}
